import { API_BASE_URL, BASE_TARGET_URL } from './constant';
import { ProxyOptions } from 'vite';
type ProxyTargetList = Record<string, ProxyOptions>;

// const rewrite = (path) => path.replace(/^\/api/, '');
const init: ProxyTargetList = {
  [API_BASE_URL]: {
    target: BASE_TARGET_URL,
    changeOrigin: true,
    // rewrite,
  },
};

export default init;
